// build a number guessing game

module Main = {
  // generate random number between 1 and 100
  let random = Random.int(100) + 1
  //   let random = 50

  // print the random number
  print(random)

  // ask the user to guess the number
  print("Guess the number between 1 and 100")

  // read the user's guess
  let guess = readInt()

  // check if the guess is correct
  if guess == random {
    print("You guessed correctly!")
  } else {
    print("You guessed incorrectly!")
  }
}
